/*******************************************************************************
 * 
 * 
 ******************************************************************************/
;
(function() {
	'use strict';
	var app = angular.module('fwa.services');
	app.service('CaseAuditAddService', [ '$http', 'Modal', 'BaseURL',
			function($http, Modal, baseUrl) {
		var serv = this;
		serv.auditProblemId = "";
		
				
				this.saveCaseAudit = function(params,fn) {
					$http.post(baseUrl + '/hcpms/audit/saveCaseAudit.do',params).success(
							function(data){
								fn(data);
							}
					);
				}
				
				this.batchEventsInitWf = function(params,fn) {
					return $http.post(baseUrl + '/hcpms/audit/batchEventsInitWf.do',params);
				}
				
				this.queryCaseAuditDetail = function(id) {
					return $http({
						method : "get",
						url : baseUrl + '/hcpms/audit/queryDetail.do',
						params : {
							problemCode : id
						}
					});
				}
				
				
				
				// end of script
			} ]);
})();
